package com.netease.nie.base.data;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * 动态选择数据源
 * @author KingsHunter
 * @createDate June 15th,2016
 *
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

	protected Object determineCurrentLookupKey() {		
		return DynamicDataSourceContextHolder.getDatabaseType();
	}

}
